package cms.api.common.cofiguration;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Solr Api配置
 *
 * @author heyingcheng
 * @email heyingcheng@ctvit.com.cn
 * @date 2019/7/17 15:16
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "spring.data.solr")
public class SolrApiProperties {

    /** Solr host. Ignored if "zk-host" is set. */
    private String host = "http://127.0.0.1:8983/solr";
    /** ZooKeeper host address in the form HOST:PORT. */
    private String zkHost;
    /** solr collection config */
    private String config;
    /** solr collection 分片数 */
    private int numShards;
    /** solr collection 副本数 */
    private int numReplicas;

}
